package com.dmbjz.moddymq.po;


import com.dmbjz.moddymq.enummeration.TransMessageType;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;


/* 交换机获取失败的消息落库实体类 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class TransMessagePO {

    private String id;
    private String service;                 //消息发送的服务
    private TransMessageType type;          //状态枚举类
    private String exchange;                //交换机
    private String routingKey;              //路由Key
    private String queue;                   //队列
    private Integer sequence;               //发送的次数
    private String payload;                 //Message的JSON
    private LocalDateTime date;             //时间

}
